﻿#include "Dialog2DPlot.h"
#include "ui_Dialog2DPlot.h"
#include "IdaWidgetHelper.h"

Dialog2DPlot::Dialog2DPlot(QWidget *parent)
	: IdaDialogFrame(parent)
	, ui(new Ui::Dialog2DPlot())
{
	ui->setupUi(this);

    initWidget();

    connect(ui->buttonBox, &QDialogButtonBox::rejected,this,&Dialog2DPlot::reject);
    connect(ui->buttonBox, &QDialogButtonBox::accepted,this,&Dialog2DPlot::accept);
}

Dialog2DPlot::~Dialog2DPlot()
{
	delete ui;
}

void Dialog2DPlot::initWidget()
{
    //默认为模态
    //setWindowModality(Qt::WindowModality::NonModal);	
    //设置窗体图标
    setWindowIcon(QIcon(":/app_icon.icon"));
    //设置窗体标题
    setWindowTitle(QStringLiteral("2D绘图"));
    //设置窗体大小
    resize(400, 300);

    
}

void Dialog2DPlot::reject()
{
    //closeWindow(3);
    IdaDialogFrame::reject();
}

void Dialog2DPlot::accept()
{
    IdaDialogFrame::accept();
}
